package com.wcx.mylove.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class MyLoveController {

    @RequestMapping("/tree")
    public String start(){
        return "tree";
    }

    @RequestMapping("/meteor")
    public String meteor(){
        return "meteor";
    }

    @RequestMapping("/")
    public String index(){
        return "question";
    }

    @RequestMapping("/photoWall")
    public String photoWall(){
        return "photoWall";
    }

    @RequestMapping("/log")
    @ResponseBody
    public String log(@RequestParam String log){
        System.out.println("团子爸爸的优点和缺点:"+log);
        return null;
    }
}
